﻿using System;
using System.Net;
using System.Linq;
using MEFedMVVM.ViewModelLocator;
using System.ComponentModel.Composition;
using Cinch;

using Microsoft.Maps.MapControl;
using System.Collections.ObjectModel;
using System.Collections;
using System.Xml;
using System.IO;
using WebProject.Controls;
using System.ComponentModel;
using System.Windows;

namespace WebProject.ViewModels
{
    [ExportViewModel("HomePageViewModel")]
    [PartCreationPolicy(CreationPolicy.Shared)]
    public class HomePageViewModel : ViewModelBase
    {
        public string HomePageText { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }


        public HomePageViewModel()
        {
            HomePageText = "HomePageViewModel";
            Username = "Test";
            Password = "test";

            ButtonLoginClickCommand = new DelegateCommand(LoginClickAction);
            Load();
        }

        //PropertyChanged Event
        public new event PropertyChangedEventHandler PropertyChanged;
        protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
        {
            if (this.PropertyChanged != null)
                this.PropertyChanged(this, e);
        }
        //Button, Binding XAML
        public DelegateCommand ButtonLoginClickCommand { get; set; }
        //Event Rent a product
        public void LoginClickAction(object sender)
        {
           
            MessageBox.Show("Login");
        }
        //LoadData
        public void Load()
        {
   
          
        }
        
    }
}
